<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="icms.ORM.Category" %>
<%@ page import="icms.service.CategoryService" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>deleteCategory</title>
</head>
<body>
<%
//获取栏目id
String idString=request.getParameter("id");
int id;
try{
	id=Integer.parseInt(idString);
}catch(Exception e){
	id=-1;
}
//实例化服务类对象
CategoryService service=new CategoryService();
//获取栏目的持久化对象
Category category=service.getCategoryByID(id);
if(category!=null){
	service.deleteCategory(category);
}
%>
<script type="text/javascript">
window.self.location="categoryMan.jsp"
</script>
</body>
</html>